<template>
	<view class="btnSwitch">
		<view class="bg-self-dark flex round">
			<view class="cu-btn round sm" :class="[value == 0 ? 'bg-self-blue' : 'bg-self-dark']" @click="change(0)">收入</view>
			<view class="cu-btn round sm" :class="[value == 1 ? 'bg-self-blue' : 'bg-self-dark']" @click="change(1)">支出</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			list: {type: Array},
			value: {type: Number}
		},
		data() {
			return {
				
			}
		},
		onLoad(option) {
			console.log("option", option)
			this.init()
		},
		methods: {
			init() {},
			change(type) {
				this.$emit("input", type)
			}
		}
	}
</script>

<style lang="scss">
	.btnSwitch{
	}
</style>
